solving quadratic equations with square roots